/*
 * ConvergenceDiagnostics.h
 *
 *  Created on: 11 Nov 2011
 *      Author: allan
 */

#ifndef CONVERGENCEDIAGNOSTICS_H_
#define CONVERGENCEDIAGNOSTICS_H_

struct ConvergenceDiagnostics
{
	/// The number of performed iterations 
	uint iterations;
	
	/// Did the iterations converged
	bool converged;
};

struct ConvergenceOptions
{
	/// The absolute tolerance for the iterative approach 
	double absolute_tolerance;
	
	/// The relative tolerance for the iterative approach
	double relative_tolerance;
	
	/// The maximum number of iterations in the iterative approach
	unsigned max_iterations;
};

#endif /* CONVERGENCEDIAGNOSTICS_H_ */
